@import '~@/theme.less';

.stepWrapper{
    .main {
        height: 89px;
    }
    :global {
        .ant-empty-normal {
            margin: 0;
        }
        .ant-popover-inner-content{
            padding: 8px;
        }
        .ant-divider-horizontal{
            margin-bottom: 20px;
        }
    }
}

.CheckSteps {
    @icon-height: 32px;
    margin-top: 28px;

    &.internal {
        margin-top: 0;
        margin-bottom: 0;
    }

    :global {
        .ant-steps-item-tail {
            top: @icon-height / 2;
            margin: 0 0 0 ((140px + @icon-height)  / 2);

            &::after {
                width: calc(100% - @icon-height - 44px);
                height: 1px;
                margin-left: 22px;
            }
        }

        .ant-steps-item-wait > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title {
            color: #D9D9D9;
        }

        .ant-steps-item-process {
            & > .ant-steps-item-container > .ant-steps-item-tail::after {
                background: @orange;
            }
        }

        .ant-steps-item-icon,
        .ant-steps-item-process .ant-steps-item-icon{
            width: @icon-height;
            height: @icon-height;
            font-size: @icon-height / 2;
            line-height: @icon-height;
            text-align: center;
            border: 1px solid rgba(0,0,0,.15);
            border-radius: @icon-height;
            transition: background-color .3s,border-color .3s;
            margin-left: ((140px - @icon-height)  / 2);
            cursor: pointer;
        }

        .ant-steps-item-error .ant-steps-item-icon {
            border-color: #f5222d;
        }

        .ant-steps-item-finish .ant-steps-item-icon{
            border: none;
            background-color: rgba(255, 162, 45, 0.1);
        }

        .ant-steps-item-process > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title{
            color: @orange;
        }

        .ant-steps-item-process .ant-steps-item-icon {
            border-color: @orange;
            background: @orange;
            color: #fff;
        }
    }

    .stepsIconText {
        position: relative;
        line-height: 30px;
        display: inline-block;
        width: 30px;
        height: 30px;
    }
}

.CheckStepsTip {
    @item-icon-height: 24px;
    min-width: 180px;
    background-color: #fafafa;
    border-radius: 4px;

    :global {
        .pTip {
            padding: 1px 5px;
            text-align: center;
            min-width: 90px;
        }
        .employeeView{
            .pTip {
                padding: 6px 5px;
            }
        }
        .ant-steps-item-icon,
        .ant-steps-item-process .ant-steps-item-icon{
            width: @item-icon-height;
            height: @item-icon-height;
            font-size: @item-icon-height / 2;
            line-height: @item-icon-height;
            text-align: center;
            border: 1px solid rgba(0,0,0,.15);
            border-radius: @item-icon-height;
            transition: background-color .3s,border-color .3s;
            margin-left: ((140px - @item-icon-height)  / 2);
            cursor: pointer;
        }
        .pTipHeader{
            color: rgba(0,0,0,0.45);
            font-size: 10px;
            line-height: 14px;
        }
        .pTipContent{
            font-size: 10px;
            color: rgba(0,0,0,0.65);
            font-weight: 500;
            line-height: 18px;
            padding-bottom: 3px;
            span{
                white-space: nowrap;
            }
            .ant-btn{
                margin: 8px 0;
            }
        }
        .stepContent{
            padding: 6px 0;
        }

        .sonStep{
            padding: 5px 4px 12px;
            background: #fff;
            :global {
                .ant-steps-item {
                    .ant-steps-item-icon {
                        margin-left: 0;
                    }
                    .ant-steps-item-title{
                        font-size: 10px;
                        line-height: 24px;
                        &::after{
                            display: none
                        }
                    }
                }
                .ant-steps-item:not(:last-child){
                    margin-right: 0;
                    padding-right: 16px;
                    &::after{
                        content: '';
                        display: inline-block;
                        position: absolute;
                        height: 1px;
                        width: 12px;
                        background-color: rgba(0, 0, 0, 0.05);
                        top: 50%;
                        right: 10px;
                        z-index: 2;
                    }
                }
            }
        }
    }
}
